import {
    get, post
} from './http.js'
// 登录请求
export let reqLogin = (params) => post("/api/login", params)
// 注册请求
export let reqRegister = (params) => post("/api/register", params)
//首页 轮播图
// export let reqBanner = (params) => get("/api/getbanner", params)
// 首页 分类
// export let reqCate = (params) => get("/api/getcate", params)

// 新人专享
export let reqNew = (params) => get("/api/getnew", params)

// 万人团
export let reqGroup = (params) => get("/api/getgroupon", params)
// 秒杀活动
export let reqSeckil = (params) => get("/api/getseckill", params)

// 首页全部商品
export let reqAllGoods = (params) => get("/api/getindexgoods", params)

// 商品分类
export let reqCate = (params) => get("/api/getcate", params)
// 获取商品分类
export let reqCateGoods = (params) => get("/api/getgoods", params)
// 商品详情
export let reqDetailInfo = (params) => get("/api/getgoodsinfo", params)
// 加入购物车
export let reqAddShop = (params) => post("/api/cartadd", params)
// 购物车列表
export let reqAddList = (params) => get("/api/cartlist", params)
// 购物车删除
export let reqShopDel = (params) => post("/api/cartdelete", params)
// 购物车修改
export let reqShopedit = (params) => post("/api/cartedit", params)







//首页 轮播图
export let reqBanner = (params) => get("/api/getbanner", params)